package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.domain.Grade;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GradeMapper {
    int deleteByPrimaryKey(Long gradeId);

    int insert(Grade record);

    Grade selectByPrimaryKey(Long id);

    List<Grade> selectAll();

    int updateByPrimaryKey(Grade record);


    int queryCount(QueryObject qo);

    List<Grade> queryList(QueryObject qo);

    /**
     * 根据ID改变班级
     * @param id
     */
    void changeState(Long id);


    //通过班级名字找班级对象
    Grade selectByClassName(String className);

    List<Grade> selectByRoomId(Long roomId);

    Grade selectByClassId(Long classId);

    void updateTeacher(@Param("sid")Long id,@Param("tid") Long tid);

}

